/*
 *  lhdfs/src/storage/unittest/test_logger.c
 *
 *  Harry Wei <harryxiyou@gmail.com> (C) 2011
 *
 */

#include <glib.h>
#include <logger.h>
#include <string.h>
#include "hlfs.h"

int main(void)
{
	int ret = 0;
	void *storage_handler = "local:///xx";
	guint64 storage_address = 0x0000000f000000ffull;
	struct log_header *log = NULL;

	log = (struct log_header *)g_malloc0(sizeof(struct log_header));
	if (!log) {
		g_message("Allocate Error!\n");
		return 1;
	}
	memset(log, 0, sizeof(struct log_header));
	ret = load_log(storage_handler, storage_address, &log);
	g_assert(0 == ret);
}
